public class FacadeDecrypt {
    FileReaders fileReaders;
    FileDecrypt fileDecrypt;
    FileWriters fileWriters;
    public FacadeDecrypt() {
        fileReaders = new FileReaders();
        fileDecrypt = new FileDecrypt();
        fileWriters = new FileWriters();
    }
    public void decryptFile(String filePath, String outputFileName) {
        System.out.println("解密前:"+fileReaders.ReadFile(filePath));

        System.out.println("解密后:"+fileDecrypt.Decrypt(fileReaders.ReadFile(filePath)));
        if(fileWriters.writeFile(outputFileName, fileDecrypt.Decrypt(fileReaders.ReadFile(filePath))))
        {
            System.out.println("写入成功!");
        }
    }
}
